import request from '@/utils/request'

// 封装登录api请求
export const loginApi = (data) => {
//   return request.post('/park/login', data)
  return request({ url: '/park/login', method: 'post', data })
}

// 封装用户信息api请求
export const userInfoApi = () => {
  return request.get('/park/user/profile')
}

// 封装修改密码请求
export const updateApi = (data) => {
  return request({
    url: '/park/profile/updatePwd',
    method: 'put',
    data
  })
}

